home *** CD-ROM | disk | FTP | other *** search
- Path: news.cac.psu.edu!usenet
- From: "Jason A. Soloff" <jas251@psu.edu>
- Newsgroups: comp.lang.c++,comp.lang.c
- Subject: compiling problem under g++
- Date: Tue, 02 Apr 1996 16:57:39 -0500
- Organization: Penn State University
- Message-ID: <3161A2D3.7D84@psu.edu>
- NNTP-Posting-Host: nb10ppp238.cac.psu.edu
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0GoldB1 (Win95; I)
-
- Hi all...
-
- Minor problem here... I have been coding in C++ for years on the Dos/win
- platforms, and am running into (what has to be) a simple, but annoying
- problem...
-
- this is the code:
-
- #include <math.h>
- int main(void)
- {
- printf("%f\n",sqrt(25));
- return 0;
- }
-
- OK... thats it... nice and simple huh? Nope.
- Won't compile on two unix systems I am trying to work with...
- SunOS 4.1.3_U1, with g++ 2.4 It can't seem to find the
- sqrt code from the library? Am I missing something? is the
- library called something else under UNIX?
-
- Thanks,
-
- Jason Soloff
- Penn State University
-
-
-